package com.lcj.crawler;

import com.geccocrawler.gecco.annotation.Gecco;
import com.geccocrawler.gecco.annotation.HtmlField;
import com.geccocrawler.gecco.annotation.Request;
import com.geccocrawler.gecco.annotation.RequestParameter;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;
import com.geccocrawler.gecco.spider.SpiderBean;

import java.util.List;

//http://zp.hnzpsc.com/Jobs/jobs_list/p/1.html
@Gecco(matchUrl = "http://zp.hnzpsc.com/Jobs/jobs_list/p/{currPage}.html", pipelines = { "saveDxrcPipeline" })
public class DxrcIndexPage implements HtmlBean, SpiderBean {

    @Request
    private HttpRequest request;

    @RequestParameter
    private String currPage;

    @HtmlField(cssPath = "div.listb > div.J_jobsList")
    private List<DxrcCompanyRecruit> dxrcCompanyRecruitList;

    public HttpRequest getRequest() {
        return request;
    }

    public void setRequest(HttpRequest request) {
        this.request = request;
    }

    public String getCurrPage() {
        return currPage;
    }

    public void setCurrPage(String currPage) {
        this.currPage = currPage;
    }

    public List<DxrcCompanyRecruit> getDxrcCompanyRecruitList() {
        return dxrcCompanyRecruitList;
    }

    public void setDxrcCompanyRecruitList(List<DxrcCompanyRecruit> dxrcCompanyRecruitList) {
        this.dxrcCompanyRecruitList = dxrcCompanyRecruitList;
    }
}
